/*************************************************************************
	> File Name: oj-448_lottery_simple.c
	> Author: Wang Bo
	> Mail: 1276106221@qq.com
	> Created Time: 2020年10月19日 星期一 13时47分12秒
 ************************************************************************/

#include <stdio.h>

int main() {
    int n, num, a[100] = {0};
    scanf("%d", &n);
    for (int i = 0; i < n; ++i) {
        scanf("%d", &a[i]);
    }
    scanf("%d", &num);
    for (int i = 0; i < n; ++i) {
        if (a[i] == num) {
            printf("%d", i + 1);
            break;
        }
    }
    return 0;
}
